﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DAL;
using FCTC_Web.Models;
using FCTC_Web.Utilities;
using FCTC_Web.Controllers.Business.BusinessModel;


namespace FCTC_Web.Controllers.Business
{
    public class EstimatorDefaultController : Controller
    {
        //
        // GET: /EstimatorDefault/ 

        public ActionResult Index(int? pageId)
        {
            EstimatorBusiness.Ins.EstimatorPage = Pager6.Ins.GetPage<Estimator>(pageId);
            return View("~/Views/Business/Estimator/EstimatorListDefault.cshtml", BusinessModel.EstimatorBusiness.Ins);
        }

        public ActionResult Details(int? id)
        {
            return View(@"~\views\business\Estimator\EstimatorDefault.cshtml", new EstimatorDetailBusiness(id));
        }

        //public ActionResult List
        //{
      
        //}

        //public ViewResult List(int? pageId)
        //{
        //    return View("~/Views/Business/EstimatorListDefault.cshtml", Pager.GetPage<Estimator>(pageId));
        //}

        //public Estimator GetLatest()
        //{
        //    if (CH.GetAllData<Estimator>().Count == 0) return null;
        //    else return CH.GetAllData<Estimator>().Last();
        //}


    }
}
